package com.yunxin.download.server.infra.support.filed.transfer.impl;


import com.yunxin.download.server.service.extenal.FileExportConfigDTO;
import com.yunxin.download.server.infra.support.filed.transfer.FieldTransfer;
import com.yunxin.download.server.infra.utils.AesUtils;

/**
 * @author zero°
 * @since 2023-06-15
 */
public class DecryptTransfer implements FieldTransfer<String, Object> {

    @Override
    public String transfer(Object value, FileExportConfigDTO.FieldFormat format) {
        return AesUtils.X.decrypt(value.toString());
    }
}
